ACPI / table: Replace '1' with specific error return values
authorHanjun Guo <hanjun.guo@linaro.org>
Wed, 9 Sep 2015 14:26:37 +0000 (16:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Sep 2015 14:26:37 +0000 (16:26 +0200)
commitf025e6ddde98819083aadee11f776180cf5c6dce
tree008e8baa5e8599661e72d15c12183e226b825d3f
parent0f09ae7bcbef680c9a6edb816557d1af4179b591
ACPI / table: Replace '1' with specific error return values

After commit 7f8f97c3cc (ACPI: acpi_table_parse() now returns
success/fail, not count), acpi_table_parse() returns '1' when it is
unable to find the table, but it should return a negative error code
in that case.  Make it return -ENODEV instead.

Fix the same problem in acpi_table_init() analogously.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[Linux commit 95df812dbdc350bfcf31e247e9100c378a472480]
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
xen/drivers/acpi/tables.c